<!DOCTYPE html>
<html>
  <head>
<meta charset="UTF-8">
      <title>美化的文本框</title>
    <style>
.alert {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.alert-content {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.alert-message {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 20px;
}

.alert-button {
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
    </style>
  </head>
  <body>

<a href="#" onclick="showAlert()">点击我弹出提示框</a>
<div class="alert" id="alert">
  <div class="alert-content">
    <p class="alert-message">这是一个提示框！</p>
    <button class="alert-button" onclick="hideAlert()">确定</button>
  </div>
</div>

  <script>
      function showAlert() {
  var alert = document.getElementById('alert');
  alert.style.display = 'flex';
}

function hideAlert() {
  var alert = document.getElementById('alert');
  alert.style.display = 'none';
}
  </script>
  </body>
</html>